package com.zzyl.mapper;

import com.github.pagehelper.Page;
import com.zzyl.dto.UserDto;
import com.zzyl.entity.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface UserMapper {


    Page<List<User>> selectPage(UserDto userDto);

    @Select("select * from sys_user")
    List<User> selectList();

    int insert(User user);

    int updateByPrimaryKeySelective(User user);

    int deleteByPrimaryKey(Long userId);

    User selectByPrimaryKey(Long id);
}
